<template>
  <comcard>
    <div slot="title_name">查看订单</div>
    <div slot="body_name">
      <el-row class="qq">
        <el-col :md="4">订单编号</el-col>
        <el-col :md="20">
          {{ formObj.orderNo }}
        </el-col>
        <el-col :md="4">订单时间</el-col>
        <el-col :md="20">
          {{ formObj.orderTime | timeMF }}
        </el-col>
        <el-col :md="4">手机号码</el-col>
        <el-col :md="20">
          {{ formObj.phone }}
        </el-col>
        <el-col :md="4">收货人</el-col>
        <el-col :md="20">
          {{ formObj.consignee }}
        </el-col>
        <el-col :md="4">送货地址</el-col>
        <el-col :md="20">
          {{ formObj.deliverAddress }}
        </el-col>
        <el-col :md="4">送达时间</el-col>
        <el-col :md="20">
          {{ formObj.deliveryTime | timeMF }}
        </el-col>
        <el-col :md="4">备注</el-col>
        <el-col :md="20">
          {{ formObj.remarks }}
        </el-col>
      </el-row>
    </div>
  </comcard>
</template>

<script>
import comcard from "../../components/comcard/index.vue";
import { api_queryOne } from "../../api/order";
export default {
  data() {
    return {
      formObj: {},
    };
  },
  components: {
    comcard,
  },
  mounted() {
    this.queryOne();
  },
  methods: {
    async queryOne() {
      let rst = await api_queryOne({ id: this.$route.query.id });
      console.log(rst);
      this.formObj = rst.data;
    },
  },
};
</script>

<style lang="less" scoped>
</style>